home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / program / nwstrn11.lha / NewString11 / Include / NewString_macros.h next >
C/C++ Source or Header  |  1995-12-12  |  2KB  |  53 lines

  1. #ifndef NEWSTRING_MACROS_H
  2. #define NEWSTRING_MACROS_H
  3. /*
  4. **      $VER: NewString_macros.h 1.1 (12.12.95)
  5. **      bgui.library macros.
  6. **
  7. **      (C) Copyright 1993-1995 Doguet Emmanuel.
  8. **      All Rights Reserved.
  9. **/
  10.  
  11.  
  12. #ifndef LIBRARIES_BGUI_H
  13. #include "bgui.h"
  14. #endif  /* LIBRARIES_BGUI_H */
  15.  
  16.  
  17. #define NewString( label, contents, maxchars, id ) \
  18.         StringObject,\
  19.             LAB_Label,              label,\
  20.             LAB_Underscore,         '_',\
  21.             RidgeFrame,\
  22.             STRINGA_TextVal,        contents,\
  23.             STRINGA_MaxChars,       maxchars+1,\
  24.             GA_ID,                  id,\
  25.             STRINGA_EditHook,       (ULONG)&StringHook,\
  26.         EndObject
  27.  
  28. #define NewStringReturn( label, contents, maxchars, id ) \
  29.         StringObject,\
  30.             LAB_Label,              label,\
  31.             LAB_Underscore,         '_',\
  32.             RidgeFrame,\
  33.             STRINGA_TextVal,        contents,\
  34.             STRINGA_MaxChars,       maxchars+1,\
  35.             GA_ID,                  id,\
  36.             STRINGA_EditHook,       (ULONG)&StringHookReturn,\
  37.         EndObject
  38.  
  39. #define NewStringCommand( label, contents, maxchars, id ) \
  40.         StringObject,\
  41.             LAB_Label,              label,\
  42.             LAB_Underscore,         '_',\
  43.             RidgeFrame,\
  44.             STRINGA_TextVal,        contents,\
  45.             STRINGA_MaxChars,       maxchars+1,\
  46.             GA_ID,                  id,\
  47.             STRINGA_EditHook,       (ULONG)&StringHookCommand,\
  48.         EndObject
  49.  
  50.  
  51.  
  52. #endif      /* NEWSTRING_MACROS_H */
  53.